package com.shk.dao;

import com.shk.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderDao {

    /*根据用户id 预约时间  套餐名查询*/
    Order findByMemberIdAndOrderDateAndSetmealId(@Param("memberId") Integer memberId,@Param("orderDate") Date orderDate, @Param("setmealId")Integer setmealId);
/*添加预约信息*/
    void add(Order order);

    Map findById(Integer id);

    List<Map> findNameAndCount();

    Integer findByToday(@Param("orderDate") String orderDate);

    Integer findOrderStatusCountByToday(@Param("orderDate") String orderDate);

    Integer findCountByThisWeek(@Param("orderDate") String orderDate);

    Integer findOrderStatusCountByThisWeek(@Param("orderDate") String orderDate);

    Integer findCountByThisMonth(@Param("orderDate") String orderDate);

    Integer findOrderStatusCountByThisMonth(@Param("orderDate") String orderDate);

    List<Map> findHotSetmeal();

}
